package top.korori.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * 登录日志
 * 
 *
 * @author korori
 * @since
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "登录日志")
public class SysLoginLogVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("登录日志id")
    private Long loginLogId;

    @ApiModelProperty("登录账号")
    private String account;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("登录ip")
    private String loginIp;

    @ApiModelProperty("浏览器")
    private String browse;

    @ApiModelProperty("操作系统")
    private String os;

    @ApiModelProperty("登录类型(0 用户名,1 手机,2 邮箱)")
    private Integer loginType;

    @ApiModelProperty("状态(0 成功, 1 失败)")
    private Integer status;

    @ApiModelProperty("返回消息")
    private String msg;

    @ApiModelProperty("登录用户id")
    private Long userId;

    @ApiModelProperty("登录时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
